package io.github.wppli.infrastructure.persistent.dao;

import io.github.wppli.infrastructure.persistent.po.ProductExtend;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 商品扩展信息表 Mapper 接口
 * </p>
 *
 * @author lijiaqiang@ljq1024.cc
 * @since 2025-03-12
 */
@Mapper
public interface IProductExtendDao extends BaseMapper<ProductExtend> {

    void createViewOrder(@Param("productId") Long productId);

    ProductExtend getProductExtend(@Param("productId")Long productId);

    void createSalesOrder(@Param("productId") Long productId, @Param("count") Integer count);
}
